<!DOCTYPE html>
<html lang="zh-cn">
   <head>
      <meta charset="utf-8">
      <meta http-equiv="X-UA-Compatible" content="IE=edge">
      <meta name="viewport" content="width=device-width, initial-scale=1">
      <title>{$CONF['mallTitle']}后台管理中心</title>
      <link href="__PUBLIC__/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet">
      <link href="__CSS__/AdminLTE.css" rel="stylesheet" type="text/css" />
      <!--[if lt IE 9]>
      <script src="__PUBLIC__/js/html5shiv.min.js"></script>
      <script src="__PUBLIC__/js/respond.min.js"></script>
      <![endif]-->
      <script src="__PUBLIC__/js/jquery.min.js"></script>
      <script src="__PUBLIC__/plugins/bootstrap/js/bootstrap.min.js"></script>
      <script src="__PUBLIC__/js/common.js"></script>
      <script src="__PUBLIC__/plugins/plugins/plugins.js"></script>

       <link rel="stylesheet" type="text/css" href="__CSS__/datatable/dataTables.bootstrap.min.css">

       <script src="__JS__/datatable/jquery.dataTables.js"></script>
       <script src="__JS__/datatable/dataTables.bootstrap.min.js"></script>
   </head>

   <body class='wst-page'>
    <!--
       <div class="wst-body">
        <table class="table table-hover table-striped table-bordered wst-list">
           <thead>
             <tr>
               <th width='30'>&nbsp;</th>
               <th width='80'>账号</th>
               <th width='80'>用户名</th>
               <th width='60'>手机号码</th>
               <th width='60'>等级</th>
               <th width='60'>总佣金</th>
               <th width='60'>可提现</th>
               <th width='60'>申请中</th>
               <th width='60'>已提现</th>
               <th width='130'>注册时间</th>
               <th width='35'>状态</th>
             </tr>
           </thead>
           <tbody>
            <volist name="results" id="vo" key='i'>
             <tr>
               <td>{$i}</td>
               <td>{$vo['loginName']}</td>
               <td>{$vo['userName']}&nbsp;</td>
               <td>{$vo['userPhone']}&nbsp;</td>
               <td>{$vo['level']}&nbsp;</td>
                 <td>{$vo['agentTotalPrice']}</td>
                 <td>{$vo['agentBalance']}</td>
                 <td>{$vo['agentWaitPrice']}</td>
                 <td>{$vo['agentPayPrice']}</td>
               <td>{$vo['createTime']}&nbsp;</td>
               <td>
               <if condition="$vo['userStatus']==0 ">
                 <span class='label label-danger wst-label'>
			               停用
			     </span>          
			     <else/>
			     <span class='label label-success wst-label'>
			               启用
			     </span> 
               </if>
               </td>
             </tr>
             </volist>
           </tbody>
        </table>
       </div>
-->


       <div class="container-fluid">
           <div class='wst-page-content'>
               <div style="padding-bottom:4px;">

               </div>
               <div class='wst-page-content' id="one">
                   <table id="fansMore" class="table table-striped table-bordered" cellspacing="0" width="100%">


                       <thead>
                       <tr>
                           <th>用户编号</th>
                           <th>账号</th>
                           <th>用户名</th>
                           <th>手机号码</th>
                           <th>等级</th>
                           <th>总佣金</th>
                           <th>可提现</th>
                           <th>申请中</th>
                           <th>已提现</th>
                           <th>注册时间</th>
                       </tr>
                       </thead>






                       <tbody>

                       </tbody>
                       <tfoot>
                       <tr>
                           <th></th>
                           <th></th>
                           <th></th>
                           <th></th>
                           <th></th>
                           <th></th>
                           <th></th>
                           <th></th>
                           <th></th>
                           <th></th>
                       </tr>
                       </tfoot>

                   </table>


               </div>

           </div>
       </div>
       <script type="text/javascript" language="javascript" class="init">
           $(function (){


               listLog();


           });






           function  listLog(){
               var data=eval({$results});
               $('#fansMore').DataTable( {
                   data:data,
                   columns: [
                       {data: 'userId'},
                       {data: 'loginName'},
                       {data: 'userName'},
                       {data: 'userPhone'},
                       {data: 'level'},
                       {data: 'agentTotalPrice'},
                       {data: 'agentBalance'},
                       {data: 'agentWaitPrice'},
                       {data: 'agentPayPrice'},
                       {data: 'createTime'}
                   ]
                   ,
                   "language": {
                       "sProcessing": "处理中...",
                       "sLengthMenu": "显示 _MENU_ 项结果",
                       "sZeroRecords": "没有匹配结果",
                       "sInfo": "显示第 _START_ 至 _END_ 项结果，共 _TOTAL_ 项",
                       "sInfoEmpty": "显示第 0 至 0 项结果，共 0 项",
                       "sInfoFiltered": "(由 _MAX_ 项结果过滤)",
                       "sInfoPostFix": "",
                       "sSearch": "搜索:",
                       "sUrl": "",
                       "sEmptyTable": "表中数据为空",
                       "sLoadingRecords": "载入中...",
                       "sInfoThousands": ",",
                       "oPaginate": {
                           "sFirst": "首页",
                           "sPrevious": "上页",
                           "sNext": "下页",
                           "sLast": "末页"
                       },
                       "oAria": {
                           "sSortAscending": ": 以升序排列此列",
                           "sSortDescending": ": 以降序排列此列"
                       }
                   },
                   "initComplete": function () {
                       var api = this.api();

                       api.columns().indexes().flatten().each( function ( i ) {

                           var column = api.column( i );
                           var select = $('<select class="form-control input-sm"><option value=""></option></select>')
                                   .appendTo( $(column.footer()).empty() )
                                   .on( 'change', function () {
                                       var val = $.fn.dataTable.util.escapeRegex(
                                               $(this).val()
                                       );
                                       column
                                               .search( val ? '^'+val+'$' : '', true, false )
                                               .draw();
                                   } );
                           column.data().unique().sort().each( function ( d, j ) {
                               select.append( '<option value="'+d+'">'+d+'</option>' );
                           } );
                       } );
                   }

               } );
           }
       </script>
   </body>
</html>